﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SignalR_ChatRoom_Server.Model.Entities
{
    [Serializable]
    public class ChatRecord
    {
        private long iD;
        private string sender;
        private string receiver;
        private DateTime when;
        private string contentType;
        private string content;

        public long ID
        {
            get { return iD; }
            set { iD = value; }
        }
        public string Sender
        {
            get { return sender; }
            set { sender = value; }
        }
        public string Receiver
        {
            get { return receiver; }
            set { receiver = value; }
        }
        public DateTime When
        {
            get { return when; }
            set { when = value; }
        }
        public string ContentType
        {
            get { return contentType; }
            set { contentType = value; }
        }
        public string Content
        {
            get { return content; }
            set { content = value; }
        }
    }
}
